# importing libraries
from PyQt5.QtWidgets import *
from PyQt5 import QtCore, QtGui
from PyQt5.QtGui import *
from PyQt5.QtCore import *
import sys

class Window(QMainWindow):

   def __init__(self):
        super().__init__()
        self.setWindowTitle("Python ")
        self.setGeometry(100, 100, 500, 400)
        # calling method
        self.UiComponents()

        # showing all the widgets
        self.show()

   def UiComponents(self):
        list_widget = QListWidget(self)
        list_widget.setGeometry(50, 70, 150, 80)
        item1 = QListWidgetItem("PyQt5 Geeks for Geeks")
        item2 = QListWidgetItem("B")
        item3 = QListWidgetItem("C")
        item4 = QListWidgetItem("D")
        list_widget.addItem(item1)
        list_widget.addItem(item2)
        list_widget.addItem(item3)
        list_widget.addItem(item4)
        list_widget.setDragDropMode(3)
        list_widget.setAutoScroll(True)
        list_widget.setWordWrap(True)

        label = QLabel("GeeksforGeeks", self)
        label.setGeometry(230, 80, 280, 80)

        label.setWordWrap(True)

if __name__ == '__main__':
# create pyqt5 app
    App = QApplication(sys.argv)
    # create the instance of our Window
    window = Window()
    # start the app
    sys.exit(App.exec())
